package com.xbj.cloud;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author: 观雾
 * @create: 2024-08-08
 * @description:
 **/
@SpringBootApplication
@EnableDiscoveryClient //consul服务注册
public class Order80Start {
    private static final Logger LOG = LoggerFactory.getLogger(Order80Start.class);


    public static void main(String[] args) {

        ConfigurableApplicationContext applicationContext = SpringApplication.run(Order80Start.class);
        String[] activeProfiles = applicationContext.getEnvironment().getActiveProfiles();
        LOG.info("Order80启动成功");
        for (String profile :activeProfiles) {
            LOG.info("当前使用的profile:"+profile);
        }
    }
}
